其他
某刷步软件接口分析
//hook e4a 发送网络数据4
XposedBridge.hookAllMethods(XposedHelpers.findClass("com.e4a.runtime.网络操作", classLoader),
"发送网络数据4",
new XC_MethodHook() {
protected void beforeHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable {
String data = (String) param.args[0];
String key = (String) param.args[1];
Log.d("pianpu", "=========================发送网络请求参数========================" );
Log.d("pianpu", "data:" +data);
Log.d("pianpu", "key:" +key);
String path = "/sdcard/PP_Hook/"+ packagename + "/Decrypt.txt";
String data2 = "url:" +data + "\n" + "data:" +key;
tools.writefilebefore(path,data2,"发送网络数据4");
}
protected void afterHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable {
String result = ""+ (String) param.getResult();
Log.d("pianpu", "result:" +result);
String path = "/sdcard/PP_Hook/"+ packagename + "/Decrypt.txt";
String data2 = "result:" +result ;
tools.writefileafter(path,data2,"发送网络数据4");
}
});
//hook e4a 取网页源码
XposedBridge.hookAllMethods(XposedHelpers.findClass("com.e4a.runtime.网络操作", classLoader),
"取网页源码",
new XC_MethodHook() {
protected void beforeHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable {
String data = (String) param.args[0];
String key = (String) param.args[1];
Log.d("pianpu", "=========================取网页源码========================" );
Log.d("pianpu", "data:" +data);
Log.d("pianpu", "key:" +key);
String path = "/sdcard/PP_Hook/"+ packagename + "/Decrypt.txt";
String data2 = "url:" +data + "\n" + "data:" +key;
tools.writefilebefore(path,data2,"取网页源码");
}
protected void afterHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable {
String result = ""+ (String) param.getResult();
Log.d("pianpu", "result:" +result);
String path = "/sdcard/PP_Hook/"+ packagename + "/Decrypt.txt";
String data2 = "result:" +result ;
tools.writefileafter(path,data2,"取网页源码");
}
});
//e4a Authcode 加密获得的数据
XposedBridge.hookAllMethods(XposedHelpers.findClass("com.e4a.runtime.加密操作", classLoader),
"Authcode加密",
new XC_MethodHook() {
protected void beforeHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable {
String data = (String) param.args[0];
String key = (String) param.args[1];
Log.d("pianpu", "|=========================Authcode加密========================|" );
Log.d("pianpu", "data:" +data);
Log.d("pianpu", "key:" +key);
String path = "/sdcard/PP_Hook/"+ packagename + "/Decrypt.txt";
String data2 = "data:" +data + "\n" + "key:" +key;
tools.writefilebefore(path,data2,"Authcode加密");
}
protected void afterHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable {
String result = ""+ (String) param.getResult();
Log.d("pianpu", "result:" +result);
String path = "/sdcard/PP_Hook/"+ packagename + "/Decrypt.txt";
String data2 = "result:" +result ;
tools.writefileafter(path,data2,"Authcode加密");
}
});
//e4a Authcode 解密获得的数据
XposedBridge.hookAllMethods(XposedHelpers.findClass("com.e4a.runtime.加密操作", classLoader),
"Authcode解密",
new XC_MethodHook() {
protected void beforeHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable {
String data = (String) param.args[0];
String key = (String) param.args[1];
Log.d("pianpu", "|=========================Authcode解密========================|" );
Log.d("pianpu", "data:" +data);
Log.d("pianpu", "key:" +key);
String path = "/sdcard/PP_Hook/"+ packagename + "/Decrypt.txt";
String data2 = "data:" +data + "\n" + "key:" +key;
tools.writefilebefore(path,data2,"Authcode解密");
}
protected void afterHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable {
String result = ""+ (String) param.getResult();
Log.d("pianpu", "result:" +result);
String path = "/sdcard/PP_Hook/"+ packagename + "/Decrypt.txt";
String data2 = "result:" +result ;
tools.writefileafter(path,data2,"Authcode解密");
}
});
看雪ID:pianpu
https://bbs.pediy.com/user-783437.htm
推荐文章++++
好书推荐